import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import global from '@/config/global.js'
import layer from 'vue-layer'
import 'vue-layer/lib/vue-layer.css'


import VueClipboard from 'vue-clipboard2'


import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
Vue.use(VueClipboard)
// use
Vue.use(mavonEditor)
/**
 * 定义layer弹窗组件
 */
Vue.prototype.$layer = layer(Vue)

/**
 * 定义全局服务器地址（废弃）
 */
Vue.prototype.$baseUrl = 'http://localhost:8088'
/**
 * 引入全局变量
 */
Vue.prototype.$global = global
/**
 * 定义全局用户信息
 */
Vue.prototype.$userMsg = { name: '未登录' }
/**
 * 定义productionTip
 */
Vue.config.productionTip = true

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
